<template>
  <div id="wrap">
    <div class="wrapitem"></div>
    <div class="wrapitem">
      <!-- <img src='~@/assets/img/qianyan.jpg' style="width: 100%;"  /> -->
    </div>
    <div class="wrapitem" style="flex: 0.1">
      <div class="language">
        <router-link :to="{ path: '/home', query: { lang: 'zh' } }">进入地图<br />GO TO MAP</router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  data() {
    return {
      isShow: true,
    };
  },
  created() { },
  mounted() {
    // let that = this;
    // setTimeout(function () {
    //   // 需要延迟执行的语句
    //   that.isShow = true;
    // }, 1000);
    // setTimeout(function() {
    //     // 需要延迟执行的语句
    //     that.$router.replace('/home');
    //   }, 15000);
  },
  methods: {
    // afterEnter: function () {
    //   let that = this;
    //   that.$router.replace('/home');
    //   setTimeout(function() {
    //     // 需要延迟执行的语句
    //     that.$router.replace('/home');
    //   }, 1500);
    // },
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.fly-in-text {
  opacity: 0;
  /** 初始状态为不可见 */
  /* animation: fly-in 3s ease-in-out forwards; */
  animation: 5s fade-in forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@font-face {
  font-family: "PangMenZhengDaoCuShuTi";
  src: url("~@/assets/fonts/PangMenZhengDaoCuShuTi-2.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'pangmen';
  src: url('~@/assets/fonts/pangmen.ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AlimamaShuHeiTi";
  src: url("~@/assets/fonts/AlimamaShuHeiTi-Bold.otf");
  font-weight: normal;
  font-style: normal;
}

#wrap {
  /* background: url("~@/assets/img/back.png") no-repeat center center; */
  background: url("~@/assets/img/qianyan.jpg") no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapitem {
  flex: 1;
  text-align: center;
}

.wrapitem-content {
  flex: 3;
  flex-direction: row;
  display: flex;
  width: 90%;
  margin: 0 auto;
  justify-content: space-around;
  background: #11388a;
  /* opacity: 60%;
  background: linear-gradient(to bottom, #000000, #11388a); */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4));
  height: 100%;
}

.wrapitem-content-item {
  width: 45%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.just {
  text-indent: 0rem !important;
  text-align: justify;
  text-align-last: justify;
  /*兼容ie*/
  text-justify: distribute-all-lines;
  margin: 0 !important;
  margin-right: 1rem !important;
  text-justify: inter-word;
}

.just1 {
  text-align: justify;
  text-align-last: justify;
  /*兼容ie*/
  text-justify: distribute-all-lines;
}

.luokuan {
  text-align: right;
  display: inline-flex;
  height: 100%;
  justify-content: flex-end;
  align-items: flex-end;
  font-size: 1.5rem !important;
  flex-direction: column;
}

.cn1 {
  color: #ffffff;
  font-weight: bold;
  font-family: "AlimamaShuHeiTi";
  font-size: 2rem;
  margin: 0;
  text-shadow: 1px 1px 1rem black;
  letter-spacing: 1rem;
}

.en1 {
  color: #ffffff;
  font-weight: bold;
  font-family: "AlimamaShuHeiTi";
  font-size: 1.5rem;
  text-shadow: 1px 1px 1rem black;
}

.cn2 {
  color: #ffffff;
  font-family: "微软雅黑";
  font-size: 1rem;
  text-shadow: 1px 1px 1rem black;
  text-indent: 2rem;
  margin: 1rem;
  line-height: 2rem;
  word-break: break-all;
  line-break: anywhere;
}

.en2 {
  color: #ffffff;
  font-family: '微软雅黑';
  font-size: 1rem;
  text-shadow: 1px 1px 1rem black;
  /* text-indent: 2rem; */
  margin: 1rem;
  line-height: 1.1rem;
  word-break: break-all;
  line-break: anywhere;
}

.cn3 {
  color: #ffffff;
  font-family: "微软雅黑";
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 1px 1px 1rem black;
  text-indent: 2rem;
  margin: 2rem;
  line-height: 2rem;
}

.en3 {
  color: #ffffff;
  font-family: '微软雅黑';
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 1px 1px 1rem black;
  text-indent: 2rem;
  margin: 2rem;
  line-height: 1.5rem;
}

.language {
  height: 6rem;
  line-height: 3rem;
  color: white;
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  padding-right: 1rem;
}

.language a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  flex-direction: row-reverse;
  display: block;
  width: 10rem;
  border-radius: 20px;
  border-style: solid;
  border-color: white;
  text-align: center;
  height: 5rem;
  line-height: 2.5rem;
  background: #ef9528;
  box-shadow: 1px 1px 1rem #ef9528;
}

.language a.selected {
  background: #ef7428;
  box-shadow: 1px 1px 1rem #ef7428;
}

.language a.en {
  margin-left: 1rem;
}
</style>
